﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace WinAS.ASHost.Utilities
{
    class PropertiesReader
    {
        public static string get(string property)
        {
            StreamReader sr = new StreamReader("server.props");
            string value;
            while ((value = sr.ReadLine()) != null)
            {
                if (value.Contains(property))
                {
                    return value.Substring(value.IndexOf("=")+1);
                }
            }
            return null;
        }
    }
}
